
import 'Definition.dart';
import 'GroupModel.dart';

class PageGroupList extends Definition {
  
	int? current;
	int? pageSize;
	int? total;
	List<GroupModel>? records;

  @override
  Map<String, dynamic> toJson() {
    return {
			"current": current,
			"pageSize": pageSize,
			"total": total,
			"records": records?.map((e) => e.toJson()).toList(),
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
		current = json["current"];
		pageSize = json["pageSize"];
		total = json["total"];
		records = (json["records"] as List?)?.map<GroupModel>((e) => GroupModel()..fromJson(e)).toList();
  }
  
}
  